package uk.ac.aber.paws.server.util;

import uk.ac.aber.paws.server.config.ConfigManager;
import uk.ac.aber.paws.server.net.WakeOnLan;

/**
 * @author Rob Johnson, Aberystwyth University
 * @email rob.johnson@aber.ac.uk
 * @date 21st May 2012
 * 
 * TestWOL.java
 * 
 * Utility class to test WOL packets
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
public class TestWOL {

	public static void main (String args[]) {
		
		if (args.length != 2) {
			System.out.println("USAGE: TestWOL BROADCAST_ADDRESS MAC_ADDRESS (in form xx:xx:xx:xx:xx:xx)");
		}
		
		//ConfigManager.loadProperties(args[0],false);
		
		WakeOnLan.wakeup(args[0], args[1], 9);
		
	}
}
